<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta HTTP-EQUIV="pragma" CONTENT="no-cache">
    <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <meta HTTP-EQUIV="expires" CONTENT="0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>资源管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/font-awesome.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/plugins/jsTree/style.min.css" rel="stylesheet">
    <link href="css/plugins/webuploader/webuploader.css" rel="stylesheet" >
    <link href="css/style.css" rel="stylesheet">
    <style>
        #nestable,
        #jstree2 {
            width: 30%;
            float: left;
            height: 100%;
            border-right: 1px solid #eee;
            padding: 10px;
            background: #fff;
        }

        .pull-right i {
            margin: 0 5px;
        }

        #jstree1 {
            padding: 10px;
        }

        .box-right {
            width: 70%;
            float: right;
            padding: 10px;
            height: 100%;
            background: #fff;
        }

        #uploadImg {
            position: absolute;
            top: 50%;
            left: 48%;
            z-index: 999;
            visibility: visible;
        }

        #bg {
            background: #eee;
            position: absolute;
            z-index: 998;
            display: none;
            width: 100%;
            height: 100%;
            filter: alpha(opacity=50);
            -moz-opacity: 0.5;
            -khtml-opacity: 0.5;
            opacity: 0.5;
        }
    </style>
</head>

<body class="gray-bg animated fadeInRight">
    <div id="bg"></div>
    <div id="fileList" class="uploader-list" style="display:none;"></div>
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-sm-4">
            <h2>资源管理</h2>
            <ol class="breadcrumb">
                <li>
                    <a class="J_menuItem">首页</a>
                </li>
                <li>
                    <a>系统管理</a>
                </li>
                <li>
                    <strong>资源管理</strong>
                </li>
            </ol>
        </div>
    </div>
    <div class="wrapper wrapper-content" style="height:100%">
        <div id="jstree2">
            <ul>
                
        </div>

        <div class="box-right" style="display:none;">
            <button class="btn btn-success btn-sm" title="保存" style="margin:10px;" id="save">保存</button>
            <div class="row">
                <div class="col-sm-10">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" style="padding-top:10px;">资源名称：</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="password" id="resource_name">
                        </div>
                    </div>
                </div>
                <div class="col-sm-10" style="margin-top:15px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" style="padding-top:10px;">资源描述：</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="password" id="description">
                        </div>
                    </div>
                </div>
                <div class="col-sm-10" style="margin-top:15px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" style="padding-top:10px;">资源路径：</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="password" id="resource_request_uri">
                        </div>
                    </div>
                </div>
                <div class="col-sm-10" style="margin-top:15px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" style="padding-top:10px;">权限字符串：</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="password" id="permissions_code">
                        </div>
                    </div>
                </div>
                <div class="col-sm-10" style="margin-top:15px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" style="padding-top:10px;">图标：</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" name="password" id="resource_image_uri">
                        </div>
                    </div>
                </div>
                <div class="col-sm-10" style="margin-top:15px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" style="padding-top:10px;">排序：</label>
                        <div class="col-sm-5">
                            <input type="num" class="form-control" name="password" id="priority" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
                        </div>
                    </div>
                </div>
                <div class="col-sm-10" style="margin-top:15px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" style="padding-top:10px;">资源类型：</label>
                        <div class="col-sm-5">
                            <div class="form-group">
                                <select class="form-control select" name="" id="resource_type">
                                    <option value="menu">menu</option>
                                    <option value="button">button</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>

         
            </div>
        </div>
    </div>
    <!-- 全局js -->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- 自定义js -->
    <script src="js/content.js"></script>
    <script src="js/plugins/layer/layer.js"></script>
    <script src="js/plugins/jsTree/jstree.min.js"></script>
    <script src="js/plugins/webuploader/webuploader.min.js"></script>
    <script src="js/work/common.js"></script>
    <script>
        var newId = "";
        var newPosition = "";
        var isCopy = 0;
        var resource_id = '';
        $(document).ready(function () {
            initData();
            initResourceData();
        })

        function context_menu(node) {
            var tree = $('#jstree2').jstree(true);
            var disabled = false;
            console.log(node)
            if (node.parents.length > 1) {
                disabled = false
            } else {
                disabled = true
            }
            var items = {
         
                "create": {
                    "separator_before": false,
                    "separator_after": true,
                    "_disabled": false,
                    "label": "新建",
                    "action": function (data) {
                        var inst = $.jstree.reference(data.reference),
                            obj = inst.get_node(data.reference);
                        inst.create_node(obj, {

                            },
                            "last",
                            function (new_node) {
                                setTimeout(function () {
                                        inst.edit(new_node)
                                    },
                                    0)
                            })
                    }
                },
            
                "remove": {
                    "separator_before": false,
                    "icon": false,
                    "separator_after": false,
                    "_disabled": disabled,
                    "label": "删除",
                    "action": function (data) {
                        var inst = $.jstree.reference(data.reference),
                            obj = inst.get_node(data.reference);
                        if (inst.is_selected(obj)) {
                            inst.delete_node(inst.get_selected())
                        } else {
                            inst.delete_node(obj)
                        }
                    }
                },
                "ccp": {
                    "separator_before": true,
                    "icon": false,
                    "separator_after": false,
                    "label": "操作",
                    "action": false,
                    "_disabled": false,
                    "submenu": {
                        "cut": {
                            "separator_before": false,
                            "separator_after": false,
                            "label": "剪贴",
                            "_disabled": disabled,
                            "action": function (data) {
                                var inst = $.jstree.reference(data.reference),
                                    obj = inst.get_node(data.reference);
                                if (inst.is_selected(obj)) {
                                    inst.cut(inst.get_top_selected())
                                } else {
                                    inst.cut(obj)
                                }
                            }
                        },
                        "copy": {
                            "separator_before": false,
                            "icon": false,
                            "separator_after": false,
                            "label": "复制",
                            "_disabled": true,
                            "action": function (data) {
                                var inst = $.jstree.reference(data.reference),
                                    obj = inst.get_node(data.reference);
                                if (inst.is_selected(obj)) {
                                    inst.copy(inst.get_top_selected())
                                } else {
                                    inst.copy(obj)
                                }
                            }
                        },
                        "paste": {
                            "separator_before": false,
                            "icon": false,
                            "_disabled": function (data) {
                                return !$.jstree.reference(data.reference).can_paste()
                            },
                            "separator_after": false,
                            "label": "粘贴",
                            "action": function (data) {
                                var inst = $.jstree.reference(data.reference),
                                    obj = inst.get_node(data.reference);
                                inst.paste(obj)
                            }
                        }
                    }
                }
            }

            return items;
        }

        function initData() {

            var data = json;
            if (data.success) {
                $('#jstree2').jstree("destroy");
                $tree = $('#jstree2').jstree({
                    'core': {
                        "check_callback": function (operation, node, parent,
                            position, more) {
                            console.log(operation)
                            if (operation == "delete_node") {
                                if (confirm("确认删除?")) {
                                    ajax({
                                        url: "resourceMain/deleteResource",
                                        data: {
                                            resource_id: node.id
                                        },
                                        successx: function (data) {
                                            console.log(data);
                                            if (data.success) {
                                                layer.msg(data.message)
                                                initData()
                                            } else {
                                                layer.msg(data.message)
                                            }
                                        }
                                    })
                                    return true
                                } else {
                                    return false
                                }
                            }
                            return true; // allow everything else
                        },
                        'data': data.data
                    },
                    'plugins': ['dnd', 'contextmenu', 'massload', 'state',
                        'wholerow', 'type'
                    ],
                    contextmenu: {
                        items: context_menu
                    }
                });
                $('#jstree2').on('move_node.jstree', function (e, data) {
                    isCopy = 0;
                    //移动
                    console.log("id:" + data.node.id);
                    console.log("父节点:" + data.parent);
                    console.log("位置:" + data.position);
                    console.log("cut:" + isCopy);
                    isCopy = 0;
                    ajax({
                        url: "resourceMain/updateResource",
                        data: {
                            parent_id: data.node.parent,
                            resource_id: data.node.id
                        },
                        successx: function (data) {
                            console.log(data);
                            layer.msg(data.message)
                            initData()
                        }
                    })
                });

                $('#jstree2').on('select_node.jstree', function (e, data) {
                    //select_node
                    console.log("id:" + data.node.id);
                    resource_id = data.node.id;
                    if (data.node.parents.length > 1) {
                       console.log(data.node.original);
                       $("#resource_type").val(data.node.original.resource_type);
                       $("#description").val(data.node.original.description);
                       $("#permissions_code").val(data.node.original.permissions_code);
                       $("#resource_name").val(data.node.original.resource_name)
                       $("#resource_request_uri").val(data.node.original.resource_request_uri)
                       $("#priority").val(data.node.original.priority)
                       $("#resource_image_uri").val(data.node.original.resource_image_uri)

                        $(".box-right").show()
                    } else {
                        $(".box-right").hide()
                    }






                });
                $('#jstree2').on('cut.jstree', function (e, data) {
                    isCopy = 0
                    //cut
                });
                $('#jstree2').on('copy.jstree', function (e, data) {
                    isCopy = 1
                    //copy
                });
                $('#jstree2').on('paste.jstree', function (e, data) {
                    //paste
                    console.log(data)
                    if (isCopy == 0) {
                        //cut
                        console.log("id:" + data.node[0].id);
                        console.log("父节点:" + data.parent);
                        console.log("位置:" + 0);
                        console.log("cut:" + isCopy);
                        ajax({
                            url: "resourceMain/updateResource",
                            data: {
                                parent_id: data.node.parent,
                                resource_id: data.node[0].id
                            },
                            successx: function (data) {
                                console.log(data);
                                layer.msg(data.message)
                                initData()
                            }
                        })
                    } else {
                        //copy
                        console.log("id:" + data.node.id);
                        console.log("父节点:" + data.parent);
                        console.log("位置:" + 0);
                        console.log("cut:" + isCopy);
                    }
                    isCopy = 0
                });
                $('#jstree2').on('create_node.jstree', function (e, data) {
                    //新建
                    newId = data.node.id;
                    newPosition = data.position
                });
                $('#jstree2').on('rename_node.jstree', function (e, data) {
                    if (data.node.id == newId) {
                        console.log("新建")
                        console.log("父节点:" + data.node.parent);
                        console.log("位置:" + newPosition);
                        console.log("newtext:" + data.node.text);
                        ajax({
                            url: "resourceMain/addResource",
                            data: {
                                parent_id: data.node.parent,
                                resource_name: data.node.text
                            },
                            successx: function (data) {
                                console.log(data);
                                layer.msg(data.message)
                                initData()
                            }
                        })

                    }
                    newId = "";
                    newPosition = "";

                });
            } else {
                layer.msg(data.message)
            }
        }







        /**
         * 资源保存
         */
        var flag = 0;
        $("#save").click(function () {
            if (flag == 1) return;
            flag = 1;
            var resource_type=$("#resource_type").val();
            var description=$("#description").val();
            var permissions_code=$("#permissions_code").val();
            var resource_name=$("#resource_name").val();
            var resource_request_uri=$("#resource_request_uri").val();
            var priority=$("#priority").val();
            var resource_image_uri=$("#resource_image_uri").val();
            if(priority==""){
                layer.msg("请输入排序");
                return;
            }
            ajax({
                url: "resourceMain/updateResource",
                data: {
                    resource_id: resource_id,
                    resource_type: resource_type,
                    permissions_code: permissions_code,
                    resource_name: resource_name,
                    resource_request_uri: resource_request_uri,
                    description:description,
                    priority:priority,
                    resource_image_uri:resource_image_uri
                },
                successx: function (data) {
                    console.log(data);
                    flag = 0;
                    layer.msg(data.message)
                    initData() 
                }
            })
        })


        var json = {
            "success": true,
            "code": 200,
            "message": "成功",
            "data": [
                {
                    "id": 1,
                    "text": "资源",
                    "resource_id": 1,
                    "parent_id": 0,
                    "parent_path": "0/",
                    "permissions_code": "",
                    "resource_name": "资源",
                    "resource_type": "menu",
                    "resource_request_uri": "",
                    "resource_image_uri": "",
                    "priority": 0,
                    "is_delete": 0,
                    "description": "",
                    "create_time": 1506637769000,
                    "update_time": 1506637769000,
                    "isPower": "",
                    "children": [
                        {
                            "id": 2,
                            "text": "机场管理",
                            "resource_id": 2,
                            "parent_id": 1,
                            "parent_path": "0/1/",
                            "permissions_code": "",
                            "resource_name": "机场管理",
                            "resource_type": "menu",
                            "resource_request_uri": "",
                            "resource_image_uri": "fa-plane",
                            "priority": 1,
                            "is_delete": 0,
                            "description": "",
                            "create_time": 1506637769000,
                            "update_time": 1527005041000,
                            "isPower": "",
                            "children": [
                                {
                                    "id": 40,
                                    "text": "服务设置",
                                    "resource_id": 40,
                                    "parent_id": 2,
                                    "parent_path": "0/1/2/",
                                    "permissions_code": "service",
                                    "resource_name": "服务设置",
                                    "resource_type": "menu",
                                    "resource_request_uri": "service.html",
                                    "resource_image_uri": "fa-cogs",
                                    "priority": 0,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1527015075000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 41,
                                    "text": "航班提醒",
                                    "resource_id": 41,
                                    "parent_id": 2,
                                    "parent_path": "0/1/2/",
                                    "permissions_code": "flight",
                                    "resource_name": "航班提醒",
                                    "resource_type": "menu",
                                    "resource_request_uri": "flight.html",
                                    "resource_image_uri": "fa-bell-o",
                                    "priority": 2,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1527015163000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 43,
                                    "text": "失物管理",
                                    "resource_id": 43,
                                    "parent_id": 2,
                                    "parent_path": "0/1/2/",
                                    "permissions_code": "lost",
                                    "resource_name": "失物管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "lost.html",
                                    "resource_image_uri": "fa-hand-paper-o",
                                    "priority": 3,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1527015170000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 42,
                                    "text": "无人陪伴",
                                    "resource_id": 42,
                                    "parent_id": 2,
                                    "parent_path": "0/1/2/",
                                    "permissions_code": "child",
                                    "resource_name": "无人陪伴",
                                    "resource_type": "menu",
                                    "resource_request_uri": "child.html",
                                    "resource_image_uri": "fa-wheelchair",
                                    "priority": 4,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1527015199000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 44,
                                    "text": "贵宾厅",
                                    "resource_id": 44,
                                    "parent_id": 2,
                                    "parent_path": "0/1/2/",
                                    "permissions_code": "vipRoom",
                                    "resource_name": "贵宾厅",
                                    "resource_type": "menu",
                                    "resource_request_uri": "vipRoom.html",
                                    "resource_image_uri": "fa-vimeo",
                                    "priority": 5,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1527015205000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 58,
                                    "text": "头条管理",
                                    "resource_id": 58,
                                    "parent_id": 2,
                                    "parent_path": "0/1/2/",
                                    "permissions_code": "cfgCappHome",
                                    "resource_name": "头条管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "news.html",
                                    "resource_image_uri": "fa-newspaper-o",
                                    "priority": 7,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1512171418000,
                                    "update_time": 1527015218000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                }
                            ],
                            "state": null
                        },
                        {
                            "id": 4,
                            "text": "店铺管理",
                            "resource_id": 4,
                            "parent_id": 1,
                            "parent_path": "0/1/",
                            "permissions_code": "",
                            "resource_name": "店铺管理",
                            "resource_type": "menu",
                            "resource_request_uri": "",
                            "resource_image_uri": "fa-shopping-cart",
                            "priority": 2,
                            "is_delete": 0,
                            "description": "",
                            "create_time": 1506637769000,
                            "update_time": 1527019525000,
                            "isPower": "",
                            "children": null,
                            "state": null
                        },
                        {
                            "id": 56,
                            "text": "运营管理",
                            "resource_id": 56,
                            "parent_id": 1,
                            "parent_path": "0/1/",
                            "permissions_code": "",
                            "resource_name": "运营管理",
                            "resource_type": "menu",
                            "resource_request_uri": "",
                            "resource_image_uri": "fa-users",
                            "priority": 1000,
                            "is_delete": 0,
                            "description": "",
                            "create_time": 1512171372000,
                            "update_time": 1525469460000,
                            "isPower": "",
                            "children": [
                                {
                                    "id": 5,
                                    "text": "机场列表",
                                    "resource_id": 5,
                                    "parent_id": 56,
                                    "parent_path": "0/1/56/",
                                    "permissions_code": "airport",
                                    "resource_name": "机场列表",
                                    "resource_type": "menu",
                                    "resource_request_uri": "airport.html",
                                    "resource_image_uri": "fa-fighter-jet",
                                    "priority": 0,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1527024048000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 8,
                                    "text": "专题管理",
                                    "resource_id": 8,
                                    "parent_id": 56,
                                    "parent_path": "0/1/56/",
                                    "permissions_code": "topic",
                                    "resource_name": "专题管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "topic.html",
                                    "resource_image_uri": "fa-server",
                                    "priority": 6000,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1525469597000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 6,
                                    "text": "广告管理",
                                    "resource_id": 6,
                                    "parent_id": 56,
                                    "parent_path": "0/1/56/",
                                    "permissions_code": "adviertisement",
                                    "resource_name": "广告管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "adviertisement.html",
                                    "resource_image_uri": "fa-send",
                                    "priority": 7000,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1525469594000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                }
                            ],
                            "state": null
                        },
                        {
                            "id": 10,
                            "text": "会员管理",
                            "resource_id": 10,
                            "parent_id": 1,
                            "parent_path": "0/1/",
                            "permissions_code": "",
                            "resource_name": "会员管理",
                            "resource_type": "menu",
                            "resource_request_uri": "",
                            "resource_image_uri": "fa-user",
                            "priority": 7000,
                            "is_delete": 0,
                            "description": "",
                            "create_time": 1506637769000,
                            "update_time": 1513369619000,
                            "isPower": "",
                            "children": [
                                {
                                    "id": 73,
                                    "text": "会员列表",
                                    "resource_id": 73,
                                    "parent_id": 10,
                                    "parent_path": "0/1/10/",
                                    "permissions_code": "",
                                    "resource_name": "会员列表",
                                    "resource_type": "menu",
                                    "resource_request_uri": "member.html",
                                    "resource_image_uri": "fa-users",
                                    "priority": 7001,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1512769641000,
                                    "update_time": 1513369625000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                }
                            ],
                            "state": null
                        },
                        {
                            "id": 11,
                            "text": "系统设置",
                            "resource_id": 11,
                            "parent_id": 1,
                            "parent_path": "0/1/",
                            "permissions_code": "expand_setting",
                            "resource_name": "系统设置",
                            "resource_type": "menu",
                            "resource_request_uri": "",
                            "resource_image_uri": "fa-cog",
                            "priority": 8000,
                            "is_delete": 0,
                            "description": "",
                            "create_time": 1506637769000,
                            "update_time": 1512769566000,
                            "isPower": "",
                            "children": [
                                {
                                    "id": 31,
                                    "text": "用户管理",
                                    "resource_id": 31,
                                    "parent_id": 11,
                                    "parent_path": "0/1/11/",
                                    "permissions_code": "user",
                                    "resource_name": "用户管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "http://upms.jites.com.cn/account/users.html",
                                    "resource_image_uri": "fa-user",
                                    "priority": 10001,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1513371873000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 33,
                                    "text": "组织管理",
                                    "resource_id": 33,
                                    "parent_id": 11,
                                    "parent_path": "0/1/11/",
                                    "permissions_code": "expand_organization",
                                    "resource_name": "组织管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "",
                                    "resource_image_uri": "fa-object-group",
                                    "priority": 10002,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1513369731000,
                                    "isPower": "",
                                    "children": [
                                        {
                                            "id": 50,
                                            "text": "组织店铺管理",
                                            "resource_id": 50,
                                            "parent_id": 33,
                                            "parent_path": "0/1/11/33/",
                                            "permissions_code": "organizations2",
                                            "resource_name": "组织店铺管理",
                                            "resource_type": "menu",
                                            "resource_request_uri": "http://upms.jites.com.cn/account/organizations2.html",
                                            "resource_image_uri": "fa-bars",
                                            "priority": 0,
                                            "is_delete": 0,
                                            "description": "组织店铺管理",
                                            "create_time": 1510013753000,
                                            "update_time": 1515193575000,
                                            "isPower": "",
                                            "children": null,
                                            "state": null
                                        },
                                        {
                                            "id": 45,
                                            "text": "组织资源管理",
                                            "resource_id": 45,
                                            "parent_id": 33,
                                            "parent_path": "0/1/11/33/",
                                            "permissions_code": "organizations",
                                            "resource_name": "组织资源管理",
                                            "resource_type": "menu",
                                            "resource_request_uri": "http://upms.jites.com.cn/account/organizations.html",
                                            "resource_image_uri": "fa-bars",
                                            "priority": 0,
                                            "is_delete": 0,
                                            "description": "",
                                            "create_time": 1509402219000,
                                            "update_time": 1515193568000,
                                            "isPower": "",
                                            "children": null,
                                            "state": null
                                        },
                                        {
                                            "id": 46,
                                            "text": "组织机场管理",
                                            "resource_id": 46,
                                            "parent_id": 33,
                                            "parent_path": "0/1/11/33/",
                                            "permissions_code": "organizations1",
                                            "resource_name": "组织机场管理",
                                            "resource_type": "menu",
                                            "resource_request_uri": "http://upms.jites.com.cn/account/organizations1.html",
                                            "resource_image_uri": "fa-plane",
                                            "priority": 0,
                                            "is_delete": 0,
                                            "description": "组织机场管理",
                                            "create_time": 1509402273000,
                                            "update_time": 1515193444000,
                                            "isPower": "",
                                            "children": null,
                                            "state": null
                                        }
                                    ],
                                    "state": null
                                },
                                {
                                    "id": 32,
                                    "text": "角色管理",
                                    "resource_id": 32,
                                    "parent_id": 11,
                                    "parent_path": "0/1/11/",
                                    "permissions_code": "role",
                                    "resource_name": "角色管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "http://upms.jites.com.cn/account/roles.html",
                                    "resource_image_uri": "fa-user",
                                    "priority": 10003,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1515193602000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 47,
                                    "text": "群组管理",
                                    "resource_id": 47,
                                    "parent_id": 11,
                                    "parent_path": "0/1/11/",
                                    "permissions_code": "groups",
                                    "resource_name": "群组管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "http://upms.jites.com.cn/account/groups.html",
                                    "resource_image_uri": "fa-user-plus",
                                    "priority": 10004,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1509569926000,
                                    "update_time": 1513372836000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 34,
                                    "text": "资源管理",
                                    "resource_id": 34,
                                    "parent_id": 11,
                                    "parent_path": "0/1/11/",
                                    "permissions_code": "resources",
                                    "resource_name": "资源管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "http://upms.jites.com.cn/account/resources.html",
                                    "resource_image_uri": "fa-gear ",
                                    "priority": 10005,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1515193859000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 35,
                                    "text": "应用管理",
                                    "resource_id": 35,
                                    "parent_id": 11,
                                    "parent_path": "0/1/11/",
                                    "permissions_code": "apps",
                                    "resource_name": "应用管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "http://upms.jites.com.cn/account/apps.html",
                                    "resource_image_uri": "fa-gear ",
                                    "priority": 10006,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1515193958000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                },
                                {
                                    "id": 36,
                                    "text": "会话管理",
                                    "resource_id": 36,
                                    "parent_id": 11,
                                    "parent_path": "0/1/11/",
                                    "permissions_code": "sessionss",
                                    "resource_name": "会话管理",
                                    "resource_type": "menu",
                                    "resource_request_uri": "http://upms.jites.com.cn/account/sessionss.html",
                                    "resource_image_uri": "fa-gear ",
                                    "priority": 10007,
                                    "is_delete": 0,
                                    "description": "",
                                    "create_time": 1506637769000,
                                    "update_time": 1515193964000,
                                    "isPower": "",
                                    "children": null,
                                    "state": null
                                }
                            ],
                            "state": null
                        }
                    ],
                    "state": null
                }
            ],
            "totalCount": 0
        }
    </script>
</body>

</html>